import { createBrowserRouter } from "react-router-dom";
import App from "../App";
import panel from "../view/panel/panel";
import user from "../view/user/user";
import examineArticle from "../view/examineArticle/examineArticle";
import examineTrade from "../view/examineTrade/examineTrade";
import examineRate from "../view/examineRate/examineRate";
import banner from "../view/banner/banner";
import articleDetail from "../view/examineArticle/component/articleDetail";

const router = createBrowserRouter(
    [
        {
            path: '/',
            Component: App,
            children: [
                {
                    path: '',
                    Component: panel
                },
                {
                    path: 'panel',
                    Component: panel
                },
                {
                    path: 'user',
                    Component: user
                },
                {
                    path: 'examineArticle',
                    Component: examineArticle,
                },
                {
                    path: 'examineRate',
                    Component: examineRate
                },
                {
                    path: 'examineTrade',
                    Component: examineTrade
                },
                {
                    path: 'banner',
                    Component: banner
                },
                {
                    path: 'examineArticle/articleDetails',
                    Component: articleDetail
                }
            ]
        }
    ]
)

export default router